<a href='https://github.com/angular/angular.js/edit/v1.5.x/docs/content/error/linky/notstring.ngdoc?message=docs(error%2Fnotstring)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: linky:notstring
  <div><span class='hint'>Not a string</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Expected string but received: {0}">Expected string but received: {0}</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when <a href="api/ngSanitize/filter/linky">linky</a> is used with a non-empty, non-string value:</p>
<pre><code class="lang-html">&lt;div ng-bind-html=&quot;42 | linky&quot;&gt;&lt;/div&gt;
</code></pre>
<p><code>linky</code> is supposed to be used with string values only, and therefore assumes that several methods
(such as <code>.match()</code>) are available on the passed in value.
The value can be initialized asynchronously and therefore null or undefined won&#39;t throw this error.</p>
<p>If you want to pass non-string values to <code>linky</code> (e.g. Objects whose <code>.toString()</code> should be
utilized), you need to manually convert them to strings.</p>

</div>


